{extend name="base" /}
{block name="body"}



<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">文件管理</strong> / <small>index</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/Files/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<a href="{:url('admin/Files/add')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 上传</a>
		<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
	</div>
</div>

<div class="am-padding am-scrollable-horizontal">
	<table class="am-table am-table-bd am-table-striped am-text-nowrap admin-content-table">
		<thead>
			<tr>
				<th>ID</th>
				<th>地址</th>
				<th>扩展名</th>
				<th>类型</th>
				<th>大小</th>
				<th>MD5</th>
				<th>上传时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			{foreach name="list" item="vo"}
			<tr>
				<td class="am-text-middle">{$vo.id}</td>
				<td class="am-text-middle">{$vo.url}</td>
				<td class="am-text-middle">{$vo.ext}</td>
				<td class="am-text-middle">{$vo.mime}</td>
				<td class="am-text-middle">{$vo.size}</td>
				<td class="am-text-middle">{$vo.md5}</td>
				<td class="am-text-middle">{$vo.create_time|date='Y-m-d H:s'}</td>
				<td class="am-text-middle">
					<div class="am-btn-toolbar">
						<div class="am-btn-group am-btn-group-xs">
							<a href="{:url('admin/Files/delete',['id'=>$vo['id']])}" class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only ajax-delete"><span class="am-icon-trash-o"></span> 删除</a>
						</div>
					</div>
				</td>
			</tr>
			{/foreach}
			

		</tbody>
	</table>

	{$list|raw}
</div>



{/block}